.class Lcom/waiqin365/lightapp/visit/ab;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/widget/LinearLayout;

.field final synthetic b:Landroid/view/View;

.field final synthetic c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/CustomFormActivity;Landroid/widget/LinearLayout;Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    iput-object p2, p0, Lcom/waiqin365/lightapp/visit/ab;->a:Landroid/widget/LinearLayout;

    iput-object p3, p0, Lcom/waiqin365/lightapp/visit/ab;->b:Landroid/view/View;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 13

    const/4 v12, 0x1

    const/4 v4, -0x2

    const/high16 v6, 0x41700000    # 15.0f

    const/4 v8, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/d;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f030292

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v3, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v4, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v5, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v5

    invoke-virtual {v2, v3, v8, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const-string/jumbo v2, "childlay"

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    const v2, 0x7f0c0c91

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    const-string/jumbo v3, "childopenContent"

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    const v3, 0x7f0c0c8f

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->A(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v4

    iget-object v5, v0, Lcom/waiqin365/lightapp/visit/b/d;->d:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/ArrayList;

    if-nez v4, :cond_0

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v5}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->A(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v5

    iget-object v6, v0, Lcom/waiqin365/lightapp/visit/b/d;->d:Ljava/lang/String;

    invoke-virtual {v5, v6, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v6, v0, Lcom/waiqin365/lightapp/visit/b/d;->b:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v6

    add-int/lit8 v6, v6, 0x1

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v5, "childopen"

    invoke-virtual {v3, v5}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    const v4, 0x7f0c0c90

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v5}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->d(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v5

    iget-object v6, v0, Lcom/waiqin365/lightapp/visit/b/d;->d:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/Integer;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, v0, Lcom/waiqin365/lightapp/visit/b/d;->d:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string/jumbo v7, "_"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    new-instance v6, Lcom/waiqin365/lightapp/visit/ac;

    invoke-direct {v6, p0, v1, v0}, Lcom/waiqin365/lightapp/visit/ac;-><init>(Lcom/waiqin365/lightapp/visit/ab;Landroid/widget/LinearLayout;Lcom/waiqin365/lightapp/visit/b/d;)V

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v4, v8}, Landroid/widget/ImageView;->setVisibility(I)V

    new-instance v4, Lcom/waiqin365/lightapp/visit/ad;

    invoke-direct {v4, p0, v1}, Lcom/waiqin365/lightapp/visit/ad;-><init>(Lcom/waiqin365/lightapp/visit/ab;Landroid/widget/LinearLayout;)V

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/d;->e:Ljava/util/ArrayList;

    invoke-virtual {v3, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/waiqin365/lightapp/visit/b/e;

    move v7, v8

    :goto_0
    iget-object v4, v3, Lcom/waiqin365/lightapp/visit/b/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v7, v4, :cond_5

    iget-object v4, v3, Lcom/waiqin365/lightapp/visit/b/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v4, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/waiqin365/lightapp/visit/b/i;

    iget-object v6, v4, Lcom/waiqin365/lightapp/visit/b/i;->a:Ljava/lang/String;

    const-string/jumbo v9, "|"

    invoke-virtual {v6, v9}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_1

    iget-object v6, v4, Lcom/waiqin365/lightapp/visit/b/i;->a:Ljava/lang/String;

    iget-object v9, v4, Lcom/waiqin365/lightapp/visit/b/i;->a:Ljava/lang/String;

    const-string/jumbo v10, "|"

    invoke-virtual {v9, v10}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v9

    invoke-virtual {v6, v8, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v4, Lcom/waiqin365/lightapp/visit/b/i;->a:Ljava/lang/String;

    :cond_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v9, v4, Lcom/waiqin365/lightapp/visit/b/i;->a:Ljava/lang/String;

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string/jumbo v9, "|"

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string/jumbo v9, "%s_%s"

    const/4 v10, 0x2

    new-array v10, v10, [Ljava/lang/Object;

    iget-object v11, v0, Lcom/waiqin365/lightapp/visit/b/d;->d:Ljava/lang/String;

    aput-object v11, v10, v8

    aput-object v5, v10, v12

    invoke-static {v9, v10}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    iput-object v6, v4, Lcom/waiqin365/lightapp/visit/b/i;->a:Ljava/lang/String;

    iget-object v6, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v6, v4, v12}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->a(Lcom/waiqin365/lightapp/visit/CustomFormActivity;Lcom/waiqin365/lightapp/visit/b/i;Z)Landroid/view/View;

    move-result-object v6

    if-eqz v6, :cond_3

    iget-object v4, v3, Lcom/waiqin365/lightapp/visit/b/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    if-ne v7, v4, :cond_2

    instance-of v4, v6, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;

    if-eqz v4, :cond_4

    move-object v4, v6

    check-cast v4, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;

    invoke-virtual {v4, v8}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->setBottomLineStatus(Z)V

    :cond_2
    :goto_1
    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_3
    add-int/lit8 v4, v7, 0x1

    move v7, v4

    goto :goto_0

    :cond_4
    instance-of v4, v6, Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    if-eqz v4, :cond_2

    move-object v4, v6

    check-cast v4, Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    invoke-virtual {v4, v8}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->b(Z)V

    goto :goto_1

    :cond_5
    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/ab;->c:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->d(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v3

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/d;->d:Ljava/lang/String;

    invoke-virtual {v3, v0, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ab;->a:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/ab;->b:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->removeView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/ab;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    return-void
.end method
